import requestService from '@/services/requestService';

// 模板列表
export function getTemplateList(params) {
    return requestService(`/message/template/list`, params, {
        method: 'POST',
    });
}
//模板创建
export function createTemplate(params) {
    return requestService(`/message/template/create`, params, {
        method: 'POST',
    });
}
//模板消息发送
export function sendMessage(params) {
    return requestService(`/message/template/send`, params, {
        method: 'POST',
    });
}
// 模板删除
export const deleteTemplate = (tempalteId) => {
    return requestService(
        `/message/template/delete/${tempalteId}`,
        {},
        {
            method: 'GET',
        },
    );
};
// 模板详情
export const getTemplateDetail = (tempalteId) => {
    return requestService(
        `/message/template/detail/${tempalteId}`,
        {},
        {
            method: 'GET',
        },
    );
};
// 模板修改
export function editTemplate(params) {
    return requestService(`/message/template/modify`, params, {
        method: 'POST',
    });
}

// 洋浦
export function getData() {
    return requestService(
        `/ypGoods/getGatherFeedbackInfo`,
        {},
        {
            method: 'POST',
        },
    );
}

export function getXygData() {
    return requestService(
        `/xygContainer/getGatherFeedback`,
        {},
        {
            method: 'POST',
        },
    );
}
